package com.lh.cycle;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class CycleApplicationContext {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class);


        for (String name : context.getBeanDefinitionNames()) {

            System.out.println(name);
        }


    }
}
